package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.IdleAffiliateCpsIncomeDetail;

/**
 * 闲鱼联盟CPS佣金明细Mapper接口
 * 
 * @author ruoyi
 */
public interface IdleAffiliateCpsIncomeDetailMapper 
{
    /**
     * 查询闲鱼联盟CPS佣金明细
     * 
     * @param id 闲鱼联盟CPS佣金明细主键
     * @return 闲鱼联盟CPS佣金明细
     */
    public IdleAffiliateCpsIncomeDetail selectIdleAffiliateCpsIncomeDetailById(Long id);

    /**
     * 查询闲鱼联盟CPS佣金明细列表
     * 
     * @param idleAffiliateCpsIncomeDetail 闲鱼联盟CPS佣金明细
     * @return 闲鱼联盟CPS佣金明细集合
     */
    public List<IdleAffiliateCpsIncomeDetail> selectIdleAffiliateCpsIncomeDetailList(IdleAffiliateCpsIncomeDetail idleAffiliateCpsIncomeDetail);

    /**
     * 新增闲鱼联盟CPS佣金明细
     * 
     * @param idleAffiliateCpsIncomeDetail 闲鱼联盟CPS佣金明细
     * @return 结果
     */
    public int insertIdleAffiliateCpsIncomeDetail(IdleAffiliateCpsIncomeDetail idleAffiliateCpsIncomeDetail);

    /**
     * 修改闲鱼联盟CPS佣金明细
     * 
     * @param idleAffiliateCpsIncomeDetail 闲鱼联盟CPS佣金明细
     * @return 结果
     */
    public int updateIdleAffiliateCpsIncomeDetail(IdleAffiliateCpsIncomeDetail idleAffiliateCpsIncomeDetail);

    /**
     * 删除闲鱼联盟CPS佣金明细
     * 
     * @param id 闲鱼联盟CPS佣金明细主键
     * @return 结果
     */
    public int deleteIdleAffiliateCpsIncomeDetailById(Long id);

    /**
     * 批量删除闲鱼联盟CPS佣金明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIdleAffiliateCpsIncomeDetailByIds(Long[] ids);

    /**
     * 根据账单ID查询闲鱼联盟CPS佣金明细
     * 
     * @param billId 账单ID
     * @return 闲鱼联盟CPS佣金明细
     */
    public IdleAffiliateCpsIncomeDetail selectIdleAffiliateCpsIncomeDetailByBillId(String billId);

    /**
     * 根据订单ID查询闲鱼联盟CPS佣金明细
     * 
     * @param orderId 订单ID
     * @return 闲鱼联盟CPS佣金明细
     */
    public IdleAffiliateCpsIncomeDetail selectIdleAffiliateCpsIncomeDetailByOrderId(String orderId);
} 